package cleancode.model;

/**
 * Model for roles.
 */
public class Role extends NameBasedModel
{

    private NameOrientedModelSet<Operation> operations = new NameOrientedModelSet<>();

    public Role( String name )
    {
        super( name );
    }

    public boolean supportOperation( Operation operation )
    {
        return operations.contains( operation );
    }

    public NameOrientedModelSet<Operation> getSupportedOperations()
    {
        return operations;
    }

}
